<section class="content-header">
	<h1>
		热门频道
		<small>数据维护</small>
	</h1>
</section>
<section class="content" xmlns:th="http://www.thymeleaf.org">
	<div class="row">
    	<div class="col-xs-12">
        	<div class="box">
	            <div class="box-body">
		            <form id="bpChannelForm" role="form" class="form-horizontal">
		            	<div class="form-group ">
							<label class="control-label col-md-3">频道图标:</label>
							<div class="col-md-9">
								<div class="fileinput fileinput-new" data-provides="fileinput">
									<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
										<img th:if="${bpChannel?.icon}" th:src="@{'/common/showImage?filePath='+${bpChannel?.icon}}"/>
									</div>
									<div>
										<span class="btn default btn-file">
											<span class="fileinput-new">选择图标</span>
											<span class="fileinput-exists">编辑</span>
											<input type="file" name="icon">
										</span>
										<a href="javascript:;" class="btn red fileinput-exists" data-dismiss="fileinput">删除</a>
									</div>
								</div>
							</div>
						</div>
<!-- 						<div class="form-group"> -->
<!-- 							<label class="col-md-3 control-label">频道图标:</label> -->
<!-- 							<div class="col-md-5"> -->
<!-- 								<input type="text" name="icon" class="form-control" th:value="${bpChannel?.icon}"  maxlength="255"/> -->
<!-- 							</div> -->
<!-- 						</div> -->
						<div class="form-group">
							<label class="col-md-3 control-label">频道代码:</label>
							<div class="col-md-5">
								<input type="text" name="channelCode" class="form-control" th:value="${bpChannel?.channelCode}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">频道名称:</label>
							<div class="col-md-5">
								<input type="text" name="channelName" class="form-control" th:value="${bpChannel?.channelName}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">频道排序:</label>
							<div class="col-md-5">
								<input type="text" name="channelSort" class="form-control" th:value="${bpChannel?.channelSort}"  maxlength="255"/>
							</div>
						</div>
<!-- 						<div class="form-group"> -->
<!-- 							<label class="col-md-3 control-label">创建时间:</label> -->
<!-- 							<div class="col-md-5"> -->
<!-- 								<input type="text" name="createTime" class="form-control datepicker" -->
<!-- 					        	th:value="${#dates.format(bpChannel?.createTime, 'yyyy-MM-dd')}"  readonly="readonly"/> -->
<!-- 							</div> -->
<!-- 						</div> -->
						<div class="form-group">
							<label class="col-md-3 control-label">状态:</label>
							<div class="col-md-5">
								<select name="status" class="form-control" th:value="${bpChannel?.status}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpChannel?.status == '1'}">启用</option>
									<option value="0" th:selected="${bpChannel?.status == '0'}">停用</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">备注说明:</label>
							<div class="col-md-5">
								<input type="text" name="remarks" class="form-control" th:value="${bpChannel?.remarks}"  maxlength="255"/>
							</div>
						</div>
					    <input type="hidden" name="id" th:value="${bpChannel?.id}"/>
		            </form>
	            </div>
	            <div class="box-footer">
	            	<div class="col-md-9 col-md-offset-3">
						<button type="button" class="btn btn-primary" onclick="save()">保存</button>
			          	<button type="button" class="btn btn-default" onclick="forwardPage('/bpChannel/init')">取消</button>
			        </div>
	            </div>
	        </div>
		</div>
	</div>
	<script th:src="@{/js/bp/bpChannel/bpChannel.js}"></script>
</section>